<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "member".
 *
 * @property string $id ID
 * @property string $name 姓名
 * @property string $phone 手机号
 */
class Member extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'member';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['name'], 'string', 'max' => 255],
            [['phone'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('common', 'ID'),
            'name' => Yii::t('common', '姓名'),
            'phone' => Yii::t('common', '手机号'),
        ];
    }
}
